package net.pm.core.service;

import java.util.Date;

import net.pm.common.service.GenericServicer;
import net.pm.common.toolkit.Pager;
import net.pm.core.entities.db.Product;

public interface ProductServicer extends GenericServicer<Product, Long> {
	
	/**
	 * 分页查找产品信息
	 * @return
	 */
	Pager<Product> findProductPager(String productName,Date startdate,Date enddate,Integer pagesize,Integer pageno);


	/**
	 * 订单产品生产完成
	 */
	void finishProduce(Long orderId,Integer productNumber,String remark,Long userId);
	
	/**
	 * 产品入库
	 * @param productId
	 * @param userId
	 * @return
	 */
	void checkInLibrary(Long productId,Long userId);
	
	
}
